<?php
/**
 * Created by PhpStorm.
 * User: Станислав
 * Date: 03.12.2014
 * Time: 21:38
 */
class admin_controllers_index extends basecontroller{
    function index(){
        $is_admin=admin_models_index::_is_logged();
        if ($is_admin){
            header('location: order?mn=mn1');
        }

        admin_models_index::_login();

        $view = new router;
        require_once ($view->getView());

    }
}